#ifndef __GameScene_H__
#define __GameScene_H__
#include "cocos2d.h"
#include "Player.h"
#include "TiledMapMgr.h"
#include "UiMgr.h"
#include "Utils.h"
#include "BulletMgr.h"
#include "EnemyMgr.h"	
#include "AudioMgr.h"
#include "WeaponMgr.h"

USING_NS_CC;
using namespace std;
class CGameScene : public Scene
{
public:
	static CGameScene* getInstance();
	~CGameScene();
	virtual bool init();
	virtual void update(float delta);
	CREATE_FUNC(CGameScene);
	CC_SYNTHESIZE_READONLY(Cplayer*, m_pPlayer, Player);
	CC_SYNTHESIZE_READONLY(CTiledMapMgr*, m_pTiledMapMgr, TiledMapMgr);
	CC_SYNTHESIZE_READONLY(CUiMgr*, m_pUiMgr, UiMgr);
	CC_SYNTHESIZE_READONLY(CBulletMgr*, m_pBulletMgr, BulletMgr);
	CC_SYNTHESIZE_READONLY(CEnemyMgr*, m_pEnemyMgr, EnemyMgr);
	CC_SYNTHESIZE_READONLY(CAudioMgr*, m_pAudioMgr, AudioMgr);
	CC_SYNTHESIZE_READONLY(CWeaponMgr*, m_pWeaponMgr, WeaponMgr);
	CC_SYNTHESIZE_READONLY(CUtils*, m_pCutils, Cutils);
private:
	CGameScene();
private:
	bool canMove;
	static CGameScene* _Instance;
	TMXTiledMap* tiledMap;
};


#endif